namespace YMJake.Flowable.ExternalWorker.Client.AspNetCore.Pipeline;

/// <summary>
/// Interface for handling external worker jobs
/// </summary>
public interface IWorkerHandler
{
    /// <summary>
    /// Handle the external worker job
    /// </summary>
    /// <param name="context">The worker context</param>
    /// <returns>Task representing the async operation</returns>
    Task HandleAsync(IWorkerPipelineContext context);
}